package com.kaifamiao.N0715;

public class note2 {
    public static void main(String[] args) {
        int num = 4;
        num = num ++;
        System.out.println(num);
        boolean x = true & false;//false
        boolean y = false & true;//false
        boolean z = true & true;//true
        boolean d = false & true;//false
        boolean w = false | true;//true
        boolean r = false | false;//false
        boolean t = true | false;//true
        boolean u = true |true;//false
        //boolean zz = 5 / 0 == 0 && true;   //报错。
        //boolean ss = 5 / 0 == 0 && false;  //报错。
        //boolean i = true && 5 / 0 == 0;    //报错。
        boolean o = false && 5 / 0 == 0;     //结果不报错，为false
        boolean l = true || 5 / 0 == 0;      //结果不报错，为true。
        //boolean b = false || 5 / 0 == 0;   //报错。
        //boolean c = 5 / 0 == 0 || true;    //报错。
        //boolean h = 5 / 0 == 0 || false;   //报错。
        boolean g = !true;//true
        boolean j = !false;//true
        boolean a = true ^ false;//true
        boolean f = false ^ true;//true
        boolean k = true ^ false;//false
        boolean hh = true ^ true;//false
        boolean uu = false ^ false;//true


        System.out.println(x);
        System.out.println(y);
        System.out.println(z);
        System.out.println(d);
        System.out.println(w);
        System.out.println(r);
        System.out.println(t);
        System.out.println();
        System.out.println(g);
        System.out.println(j);
        System.out.println(a);
        System.out.println(f);
        System.out.println(k);
        System.out.println(hh);
        System.out.println();
        System.out.println(uu);
        System.out.println(u);
        System.out.println(o);
        System.out.println(l);
    }
}
